package org.ykhl.appserver.dao;

import java.util.concurrent.TimeUnit;

/**
 * Created by zkf on 5/6/16.
 */
public class PollRequest {
    private String requestId;
    private Long timeout = 120l;
    private TimeUnit timeUnit = TimeUnit.SECONDS;

    @Override
    public String toString() {
        return "PollRequest{" +
                "requestId='" + requestId + '\'' +
                ", timeout=" + timeout +
                ", timeUnit=" + timeUnit +
                '}';
    }

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public Long getTimeout() {
        return timeout;
    }

    public void setTimeout(Long timeout) {
        this.timeout = timeout;
    }

    public TimeUnit getTimeUnit() {
        return timeUnit;
    }

    public void setTimeUnit(TimeUnit timeUnit) {
        this.timeUnit = timeUnit;
    }
}
